﻿@model SportsStore.Domain.Entities.Product

<div class="well">
@if (Model.ImageData != null)
{
<div class="pull-left" style="margin-right:10px">
<img class="img-thumbnail" width="75" height="75" src="@Url.Action("GetImage", "Product", new {Model.ProductID})" />
</div>
}

<h3>
<strong>@Model.Name</strong>
<span class="pull-right label label-primary">@Model.Price.ToString("c")</span>    
</h3>

@using (Html.BeginForm("AddToCart", "Cart"))
{
    <div class="pull-right">
        @Html.HiddenFor(x=>x.ProductID)
        @Html.Hidden("returnUrl",Request.Url.PathAndQuery)
        <input type="submit" class="bnt btn-success" value="加入购物车" />
    </div>
}

<span class="lead">@Model.Description</span>
</div>